﻿using System;

namespace Domain
{
    internal class Edge
    {
        public Point A { get; private set; }
        public Point B { get; private set; }

        public Edge(Point A, Point B)
        {
            this.A = A;
            this.B = B;
        }
        public double GetLength()
        {
            var a = A.x - B.x;
            var b = A.y - B.y;
            var length = Math.Sqrt(a*a + b*b);

            return length;
        }
    }
}
